/* 
 * File:   main.c
 * Author: aeon
 *
 * Created on August 18, 2012, 6:09 PM
 */

#include <stdio.h>
#include <stdlib.h>
#include "Header_xc8.h"
#include "_lcd.h"

/*
 * 
 */
void init_hardware(void)
{
    //__delay_ms(2);
    TRISB=0x00;
    PORTB=0x00;
    ADCON1=0x0F;
}

void main(void)
{
    int i=0;
    int j=0;
    char lcd_outchar1[]="YAP skytechlabs";
    char lcd_outchar2[]="made in INDIA";
    init_hardware();
    init_lcd();
    while(lcd_outchar1[i]!='\0')
    {
                    lcd_send_data(lcd_outchar1[i]);
                    __delay_ms(7);
                    i++;
    }
    line_change();
    while(lcd_outchar2[j]!='\0')
    {
                    lcd_send_data(lcd_outchar2[j]);
                    __delay_ms(7);
                    j++;
    }
    while(1);
    
}

